import QtQuick          2.3
import QtQuick.Controls 1.2
import QtQuick.Dialogs  1.2
import QtQuick.Layouts      1.2

import QGroundControl               1.0
import QGroundControl.Palette       1.0
import QGroundControl.FactSystem    1.0
import QGroundControl.FactControls  1.0
import QGroundControl.Controls      1.0
import QGroundControl.ScreenTools   1.0
import QGroundControl.Controllers   1.0

AnalyzePage {
    id:              mavlinkConsolePage
    pageComponent:   pageComponent
    pageName:        qsTr("Mavlink Test")

    Mavlinktest {
       id: test_mavlink
    }

    TextEdit {
        id: textEdit
        x: 285
        y: 189
        width: 81
        height: 25
        color: "#f5f3f3"
        text: qsTr("TEST1")
        font.family: "Times New Roman"
        font.pixelSize: 12
    }

    Button {
        id: button
        x: 372
        y: 189
        text: qsTr("发送")
        onClicked: {
       test_mavlink._sendcom(textEdit.text,textEdit1.text,textEdit2.text)
        }
    }

    TextEdit {
        id: textEdit1
        x: 285
        y: 220
        width: 81
        height: 25
        color: "#f5f3f3"
        text: qsTr("TEST2")
        font.pixelSize: 12
    }

    TextEdit {
        id: textEdit2
        x: 285
        y: 251
        width: 81
        height: 25
        color: "#f5f3f3"
        text: qsTr("TEST3")
        font.pixelSize: 12
    }

    Label {
        id: label
        x: 285
        y: 317
        width: 30
        height: 19
        text: qsTr("接收")
    }

    TextEdit {
        id: textEdit3
        x: 286
        y: 354
        width: 80
        height: 19
        color: "#f5f3f3"
        text: test_mavlink.test1
        font.pixelSize: 12
    }

    TextEdit {
        id: textEdit4
        x: 286
        y: 391
        width: 80
        height: 19
        color: "#f5f3f3"
        text: test_mavlink.test2
        font.pixelSize: 12
    }

    TextEdit {
        id: textEdit5
        x: 286
        y: 424
        width: 80
        height: 19
        color: "#f5f3f3"
        text:test_mavlink.test3
        font.pixelSize: 12
    }



    // Component
} // AnalyzePage

